package com.hzit.order.service;

import com.alipay.api.AlipayApiException;
import com.hzit.order.dto.ItemDTO;
import com.hzit.order.dto.OrderDTO;
import com.hzit.order.entity.Order;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hzit.order.entity.PayLog;
import com.hzit.order.vo.OrderVO;
import com.ruoyi.system.api.domain.PayAsyncVo;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.concurrent.ExecutionException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wf
 * @since 2024-04-10
 */
public interface IOrderService extends IService<Order> {

	List<ItemDTO> findItemListByIds(String ids);

	String createToken();

	void saveOrder(OrderDTO dto) throws ExecutionException, InterruptedException;

	PayLog getPayLogFromRedis();

	List<OrderVO> findOrderListByLoginName();

	String asyncNotify(HttpServletRequest request, PayAsyncVo vo) throws AlipayApiException;
}
